-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ai/live: Send event when auth fails #3331
base: master
Are you sure you want to change the base?
Conversation
j0sh
commented
Dec 19, 2024
- Send an event when auth fails. If auth is broken, we don't get any events, so it can be hard to determine from events what the state of things is.
- Set the streamID = streamKey by default. This is helpful in dev mode without a webhook setup. If a webhook specifies streamID then that is still used.
- Update some logging
@@ -454,6 +455,10 @@ func (ls *LivepeerServer) StartLiveVideo() http.Handler { | |||
clog.Errorf(ctx, "failed to kick input connection: %s", kickErr.Error()) | |||
} | |||
clog.Errorf(ctx, "Live AI auth failed: %s", err.Error()) | |||
monitor.SendQueueEventAsync("ai_stream_events", map[string]string{ | |||
"type": "error", | |||
"message": "Live AI auth failed: " + err.Error(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ecmulli @gioelecerati wanted to check this would not break anything downstream since we only have a limited set of fields here. Most of the rest are unknown at this point - they come as part of the auth webhook, but the auth webhook has failed here.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3331 +/- ##
============================================
Coverage ? 33.75090%
============================================
Files ? 141
Lines ? 37359
Branches ? 0
============================================
Hits ? 12609
Misses ? 24030
Partials ? 720
Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but let's wait for @ecmulli @gioelecerati before merging to confirm/answer your inline question